//
//  TravelCell.m
//  TravelProject
//
//  Created by lanou3g on 15/11/24.
//  Copyright © 2015年 韩婷婷. All rights reserved.
//

#import "TravelCell.h"
#import "UIImageView+WebCache.h"

@interface TravelCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imagePicture;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *views;
@property (weak, nonatomic) IBOutlet UILabel *replyLabel;

@end

@implementation TravelCell

- (void)setModel:(RecomendTravelModel *)model{
    _model = model;
    self.titleLabel.text = model.title;
    self.nameLabel.text = model.username;
    self.views.text = [NSString stringWithFormat:@"%ld",model.views];
    self.replyLabel.text = model.replys;
    [self.imagePicture sd_setImageWithURL:[NSURL URLWithString:model.photo]];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
